package com.hscm.boss.mvc.model.pages;


public class PageInfo {
    //当前的页数
    private long current;
    //总页数
    private long totalPage;
    /*这两个totalPage要等于1  不然当等于0是前端会多次查询*/
    public PageInfo() {
            this.current = 1L;
            this.totalPage = 1L;
    }

    public PageInfo(long current, long totalPage) {
        this.current = current;
        this.totalPage = totalPage == 0 ? 1 : totalPage;
    }

    public long getCurrent() {
        return current;
    }

    public long getTotalPage() {
        return totalPage;
    }
}
